package com.zwxbc.funplay.service;

import com.zwxbc.funplay.entity.Game;
import com.zwxbc.funplay.entity.PlayerGameLibrary;

import java.util.List;

public interface PlayerGameLibraryService {
	PlayerGameLibrary getPlayerGameLibraryById(Long playerGameLibraryId);
	List<PlayerGameLibrary> getPlayerGameLibraryList();
	boolean deletePlayerGameLibrary(Long playerGameLibraryId);
	boolean updatePlayerGameLibrary(PlayerGameLibrary playerGameLibrary);
	boolean addPlayerGameLibrary(PlayerGameLibrary playerGameLibrary);
	/**
	 * 玩家是否拥有游戏
	 * @param gameId
	 * @param playerId
	 * @return
	 */
	boolean playerIfHaveGame(Long gameId, Long playerId);
	/**
	 * 根据玩家id获取游戏列表
	 */
	List<Game> getGameListByPlayerId(Long playerId);
}
